import axiosData from "@/api/axios";

export default {
  /**
   * @description: 委内故障上报分页查询已审核 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {} *
   * @return {Array}
   */
  queryPageList(params) {
    return axiosData.post(
      "/v3/equipment-hitch/v1/repairTask/queryPageList",
      params
    );
  },
  /**
   * @description: 维修处理: 委外维修申请
   * @param {Object} params *
   * @return {Object}
   */
  addApplyOut(params) {
    return axiosData.post(
      "/v3/equipment-hitch/v1/hitchApplyAudit/addApply",
      params
    );
  },
  /**
   * @description: 维修处理: 处理
   * @param {Object} params *
   * @return {Object}
   */
  addReIn(params) {
    return axiosData.post(
      "/v3/equipment-hitch/v1/repairTask/addHandle",
      params
    );
  },
  /**
   * @description: 视频绑定维修任务
   * @param {*} params
   */
  repairTaskBindVideo(params) {
    return axiosData.post(
      "/v3/equipment-hitch/v1/repairRecord/bindRepairRecordAndVideo",
      params
    );
  },
  /**
   *  @description： 图片上传
   */
  submitPicList(data) {
    return axiosData({
      method: "POST",
      url: "/v3/equipment-hitch/repairPicture/uploadPictureList",
      data
    });
  }
};
